﻿<%@ Page Title="" Language="C#" MasterPageFile="~/APP_Master/MasterPage_Betting.master" AutoEventWireup="true" CodeFile="double_copy.aspx.cs" Inherits="double_copy" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <meta charset="utf-8">
    <link href="style/webstyle.css" rel="stylesheet" type="text/css" />
    <title>粘贴选号</title>
    <!--[if IE 6]>
<script type="text/javascript" src="png.js"></script>
<script>
PNG.fix('*');
</script><![endif]-->
    <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="App_Themes/js/jquery.fxTab.js" type="text/javascript"></script>

    <script src="App_Themes/js/jquery.jBox-2.3.min.js" type="text/javascript"></script>
    <script src="App_Themes/js/jquery.jBox-zh-CN.js" type="text/javascript"></script>
    <link href="App_Themes/css/Blue/jbox.css" rel="stylesheet" type="text/css" />

    <link href="css/webstyle.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .touchu_ul1 {
            width: 100%;
            height: 140px;
            overflow-y: auto;
            overflow-x: hidden;
        }

            .touchu_ul1 dt {
                width: 100%;
                height: 28px;
                line-height: 28px;
                background: #fff6db;
                color: #333;
                padding-right: 10px;
            }

        .touchu_ul1_span1 a {
            color: #333;
        }

        .touchu_ul1_span1 {
            float: right;
            padding-right: 15px;
        }

        .touchu_ul1 dt b {
            padding-left: 10px;
            color: #000;
        }

            .touchu_ul1 dt b.touchu_ul1_b {
                padding: 0 10px;
                color: #c60000;
            }

        .lan1 {
            color: #1379d7;
        }
    </style>
    <style type="text/css">
        .touchu_ul1 {
            width: 100%;
            height: 140px;
            overflow-y: auto;
            overflow-x: hidden;
        }

            .touchu_ul1 dt {
                width: 100%;
                height: 28px;
                line-height: 28px;
                background: #fff6db;
                color: #333;
                padding-right: 10px;
            }

        .touchu_ul1_span1 a {
            color: #333;
        }

        .touchu_ul1_span1 {
            float: right;
            padding-right: 15px;
        }

        .touchu_ul1 dt b {
            padding-left: 10px;
            color: #000;
        }

            .touchu_ul1 dt b.touchu_ul1_b {
                padding: 0 10px;
                color: #c60000;
            }

        .lan1 {
            color: #1379d7;
        }
    </style>
    <script src="App_Themes/js/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="js/jquery-1.9.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        var ArrayList = new Array();
        var myRedArray = new Array();
        var myBlueArray = new Array();
        if (getCookie("ArrayList") != '') {
            var arrarraylist = eval(getCookie("ArrayList"))
            //console.log(arrarraylist);
            for (j = 0; j < arrarraylist.length ; j++) {
                ArrayList.push(arrarraylist[j]);
            }
        }
        //console.log(ArrayList);
        console.log(sumTotal());
        var count = 0;
        function sumTotal() {
            var aa;
            var bb;
            var cc = 0;

            var number = $(".touchu_ul1").text();
            number = number.split("+");

            //alert(number.length);
            for (var j = 1; j < number.length; j++) {
                aa = number[j].split("[");

                bb = aa[1].split("注");
                cc += parseInt(bb[0]);


            }

            return cc;
        }
        function addRedBall(obj, value, type, dttype) {
            if (parseInt(value) <= 9) {
                value = "0" + parseInt(value);
            }
            if (type == 0) {
                var index = $.inArray(value, myRedArray);
                if (index > -1) {
                    myRedArray.splice(index, 1);
                } else {
                    if (parseInt(value) <= 9) {
                        value = "0" + parseInt(value);
                    }
                    myRedArray.push(value);
                }
                document.getElementById("ZXRedBll").value = myRedArray;
                $(obj).toggleClass("ball_btn_active");
            }
            if (type == 1) {
                var index = $.inArray(value, myBlueArray);
                if (index > -1) {
                    myBlueArray.splice(index, 1);
                } else {
                    if (parseInt(value) <= 9) {
                        value = "0" + parseInt(value);
                    }
                    myBlueArray.push(value);
                }
                document.getElementById("ZXBlueBll").value = myBlueArray;
                $(obj).toggleClass("ball_btn_active");
            }
            jQuery("#redballCout").html(myRedArray.length);
            jQuery("#blueCount").html(myBlueArray.length);
            count = parseInt(fibonacci(myRedArray.length) / fibonacci(6) / fibonacci(myRedArray.length - 6)) * myBlueArray.length;
            jQuery("#totalCout").html(count);
            jQuery("#zhushu").html(count);
            jQuery("#totalMoney").html(count * 2);
        }
        function fibonacci(n) {
            var rtn = 1;
            if (n > 1) {
                var i = 1;
                while (i <= n) {
                    rtn = rtn * i;
                    i++;
                }
            }
            return rtn;
        }
        function displayck() {
            document.getElementById("myselfDiv").style.display = "none";
        }
        function displaycl() {
            document.getElementById("myselfDiv").style.display = "block";
        }
        function login() {

            $("#box11 .011").trigger('click');
        }
        function addBuyInfo() {

            $.ajax({
                type: "get",
                dataType: "text",
                url: "Ajax/CMember.ashx?",
                data: { t: 'GetLoginInfo' },
                success: function (data) {
                    if (data.indexOf('请登录') != -1) {
                        login();
                        return false;
                    }
                    else {
                        if (getCookie('ArrayList') != '') {
                            ArrayList = eval(getCookie('ArrayList'));
                            document.getElementById("lotteryStr").value = ArrayList
                            console.log(ArrayList);
                        }
                        else {
                            document.getElementById("lotteryStr").value = ArrayList;
                            console.log(ArrayList);
                        }
                        if (ArrayList.length < 1) {
                            alert("请选择投注号码！");
                        }
                        else {
                            if (document.getElementById("lookXieyi").checked) {
                                clearCookie("cookiestr_double_betting");
                                clearCookie("cookiestr_double_betting_arrcount");
                                clearCookie("ArrayList");
                                if (document.getElementById("myself").checked) {
                                    jQuery('form').attr("action", "/Ajax/CMember.ashx?t=newarrayByMy&type=1&qs=<%=lotteryQS!=null?(Convert.ToInt32(lotteryQS[0].LotteryQS)+1):0000000%>").submit();
                                }
                                if (document.getElementById("together").checked) {
                                    if (document.getElementById("lotteryName").value == "") {
                                        alert("请输入方案标题！")
                                    }
                                    else {
                                        if (document.getElementById("lotteryxy").value == "") {
                                            alert("请输入合买宣言！")
                                        }
                                        else {
                                            jQuery('form').attr("action", "/Ajax/CMember.ashx?t=newarrayByTogether&type=1&qs=<%=lotteryQS!=null?(Convert.ToInt32(lotteryQS[0].LotteryQS)+1):0000000%>").submit();
                            }
                        }

                    }
                }
                else {
                    alert("请阅读协议");
                }
            }
        }
                }
                       });
}
function dtAddChild() {
    //alert(myRedArray);
    //alert(myBlueArray);
    if (myRedArray.length < 6 || myBlueArray.length < 1) {
        alert("至少选择6个红球和1个蓝球");
    } else {
        $('.touchu_ul1').append('<dt ><span class="touchu_ul1_span1" ><a href="JavaScript:void(0);" onclick="javascript:del(this);">删除</a></span><b >投注</b><b class="touchu_ul1_b" >'
        + myRedArray + ' + <span class="lan1" >' + myBlueArray + '</span></b> [' + count + '注,' + count * 2 + '元]</dt>');

        $(".ball_btn_active").removeClass("ball_btn_active");

        var redstr = "";
        var blustr = "";
        for (var i = 0; i < myRedArray.length; i++) {
            redstr += myRedArray[i] + "*";
        }
        redstr = redstr.substring(0, redstr.length - 1);
        for (var i = 0; i < myBlueArray.length; i++) {
            blustr += myBlueArray[i] + "*";
        }
        blustr = blustr.substring(0, blustr.length - 1);
        ArrayList.push(redstr + "+" + blustr);
        myRedArray = new Array();
        myBlueArray = new Array();
        jQuery("#redballCout").html(myRedArray.length);
        jQuery("#blueCount").html(myBlueArray.length);
        jQuery("#totalCout").html(0);
        jQuery("#totalMoney").html(0);
        var arrcount = sumTotal();
        //console.log(arrcount);
        jQuery("#yourSelect").html(arrcount);
        jQuery("#zhushu").html(arrcount);
        jQuery("#yourMoney").html(arrcount * 2);
        //wlq

        var cookiestr = '';
        var fgf = '';
        if (getCookie("cookiestr_double_betting") != "") {
            cookiestr = getCookie("cookiestr_double_betting");
            fgf = ",";
        }
        cookiestr += fgf + redstr + "+" + blustr + "||" + count + "||" + count * 2;
        setCookie("cookiestr_double_betting", cookiestr, 365);
        setCookie("cookiestr_double_betting_arrcount", arrcount, 365);
        var json = JSON.stringify(ArrayList);
        setCookie("ArrayList", json, 365);
    }
}

function del(obj) {

    $(obj).parent().parent().remove();
    //----------------End------------------------
    var arrcount = sumTotal();
    jQuery("#yourSelect").html(arrcount);
    jQuery("#zhushu").html(arrcount);
    var a = document.getElementById("yourMulti").value;
    jQuery("#yourMoney").html(arrcount * 2 * a);
    var mymoney = document.getElementById("mymoney");
    calculateMyrg(mymoney);//计算最小认购
}
function getQLCRandom() {
    var redBallArray = [];
    for (var i = 0; i < 6; i++) {
        var redBall = parseInt(Math.floor(Math.random() * 32)) + 1;
        do {
            var flag = false;
            for (var j = 0; j < redBallArray.length; j++) {
                if (parseInt(redBallArray[j]) == parseInt(redBall)) { flag = true; break; }
            }
            if (!flag) {
                if (parseInt(redBall) <= 9) {
                    redBall = "0" + parseInt(redBall);
                }
                redBallArray[i] = redBall;
            }
            else {
                redBall = parseInt(Math.floor(Math.random() * 32)) + 1;
                if (parseInt(redBall) <= 9) {
                    redBall = "0" + parseInt(redBall);
                }
            }
        }
        while (flag);
    }
    redBallArray.sort(function (a, b) { return a > b ? 1 : -1 });
    return redBallArray;
}


function getPL3Random(num) {
    //alert(num);
    for (var i = 0; i < num; i++) {
        var strrr = getQLCRandom();
        var blueBall = parseInt(Math.floor(Math.random() * 15)) + 1;
        if (parseInt(blueBall) <= 9) {
            blueBall = "0" + parseInt(blueBall);
        }
        var ballstr = strrr[0] + '*' + strrr[1] + '*' + strrr[2] + '*' + strrr[3] + '*'
        + strrr[4] + '*' + strrr[5] + "+" + blueBall;
        $('.touchu_ul1').append('<dt ><span class="touchu_ul1_span1" ><a href="JavaScript:void(0);" onclick="javascript:del(this);">删除</a></span><b >投注</b><b class="touchu_ul1_b" >'
        + strrr + ' + <span class="lan1" >' + blueBall + '</span></b> [1注,2元]</dt>');
        ArrayList.push(ballstr);

        var cookiestr = '';
        var fgf = '';
        if (getCookie("cookiestr_double_betting") != "") {
            cookiestr = getCookie("cookiestr_double_betting");
            fgf = ",";
        }
        cookiestr += fgf + ballstr + "||1||2";
        setCookie("cookiestr_double_betting", cookiestr, 365);

    }
    var arrcount = sumTotal();
    jQuery("#yourSelect").html(arrcount);
    jQuery("#zhushu").html(arrcount);
    jQuery("#yourMoney").html(arrcount * 2);
    setCookie("cookiestr_double_betting_arrcount", arrcount, 365);
    var json = JSON.stringify(ArrayList)
    setCookie("ArrayList", json, 365);

    //alert(getCookie("cookiestr_double_betting"));
}


$(document).ready(function () {
    var cookies_double_betting = getCookie("cookiestr_double_betting")
    var arr_cookies = cookies_double_betting.split(",");
    var cookie_html = '';
    for (var i = 0; i < arr_cookies.length; i++) {
        //console.log(arr_cookies[i]);
        var arraaaa = arr_cookies[i].split("||");
        var arrbbbb = arraaaa[0].split("+");
        var ccccccc = arrbbbb[0].replace(/\*/g, ",")
        cookie_html += '<dt ><span class="touchu_ul1_span1" ><a href="JavaScript:void(0);" onclick="javascript:del(this);">删除</a></span><b >投注</b><b class="touchu_ul1_b" >'
                + ccccccc + ' + <span class="lan1" >' + arrbbbb[1] + '</span></b> [' + arraaaa[1] + '注,' + arraaaa[2] + '元]</dt>'
        //console.log(cookie_html);
        $("#yourSelect").html(getCookie("cookiestr_double_betting_arrcount"));
    }
    if (cookies_double_betting != '') {
        $(".touchu_ul1").html(cookie_html);
        $("#zhushu").html(getCookie("cookiestr_double_betting_arrcount"));
    }
});
function clearAll() {
    clearCookie("cookiestr_double_betting");
    clearCookie("cookiestr_double_betting_arrcount");
    clearCookie("ArrayList");
    lotterystr = "";
    ArrayList = new Array();
    count = 0;
    jQuery("#yourSelect").html(count);
    jQuery("#yourMoney").html(count * 2);
    jQuery("#zhushu").html(0);
    $(".touchu_ul1_span1").parent().remove();
}
function clearupAll() {
    myRedArray = new Array();
    myBlueArray = new Array();
    count = 0;
    jQuery("#redballCout").html(myRedArray.length);
    jQuery("#blueCount").html(myBlueArray.length);
    jQuery("#totalCout").html(0);
    jQuery("#totalMoney").html(0);
    jQuery("#zhushu").html(0);
    //$(".ball_btn ball_btn_active").toggleClass("ball_btn");
    $(".ball_btn_active").removeClass("ball_btn_active");
}
function fillB() {
    var a = document.getElementById("yourMulti").value;
    if (a <= 0) {
        document.getElementById("yourMulti").value = 1;
        return;
    }
    var arrcount = sumTotal();
    //alert(arrcount);
    var b = arrcount * 2;
    jQuery("#yourMoney").html(a * b);
    var dd = a * b * 0.05;
    //  alert(dd);
    jQuery("#mymoney").val(Math.ceil(dd));
}
function setSelectValue() {
    var a = document.getElementById("ticheng").value;
    document.getElementById("selectHid").value = a;
}
function setgongkai(obj) {
    document.getElementById("gongkaiHid").value = obj;
}
function calculateMyrg(obj) {
    var account = sumTotal();
    var reg = new RegExp("^[0-9]*$");
    if (!reg.test(obj.value)) {
        obj.value = 0;
    } if (parseInt(obj.value) < Math.round(account * 2 * 0.05 * jQuery("#yourMulti").val())) {
        obj.value = Math.round(account * 2 * 0.05 * jQuery("#yourMulti").val());
    }
    if (parseInt(obj.value) > account * 2 * jQuery("#yourMulti").val()) {
        obj.value = account * 2 * jQuery("#yourMulti").val();
    }
    jQuery("#rengou").html(jQuery("#mymoney").val());
    jQuery("#zhifu").html(parseInt(jQuery("#rengou").html() * 1) + parseInt(jQuery("#mybd").val() * 1));

    if (parseInt(obj.value) > parseInt(account * 2 * jQuery("#yourMulti").val() - jQuery("#mymoney").val())) {
        var ss = parseInt(account * 2 * jQuery("#yourMulti").val() - jQuery("#mymoney").val());
        document.getElementById("mybd").value = ss;
    } else {
        jQuery("#mybd").html(obj.value * 1);
    }
    jQuery("#baodi").html(jQuery("#mybd").val());
    jQuery("#zhifu").html(parseInt(jQuery("#rengou").html() * 1) + parseInt(jQuery("#mybd").val() * 1));
}
function calculateMybd(obj) {
    jQuery("#baodi").html(jQuery("#mybd").val());
    var account = sumTotal();
    var reg = new RegExp("^[0-9]*$");
    if (!reg.test(obj.value)) {
        obj.value = 0;
    }
    if (parseInt(obj.value) < 0) {
        obj.value = 0;
    }

    jQuery("#rengou").html(jQuery("#mymoney").val());
    jQuery("#zhifu").html(parseInt(jQuery("#rengou").html() * 1) + parseInt(jQuery("#mybd").val() * 1));

    if (parseInt(obj.value) > parseInt(account * 2 * jQuery("#yourMulti").val() - jQuery("#mymoney").val())) {
        var ss = parseInt(account * 2 * jQuery("#yourMulti").val() - jQuery("#mymoney").val());
        document.getElementById("mybd").value = ss;
    } else {
        jQuery("#mybd").html(obj.value * 1);
    }
    jQuery("#baodi").html(jQuery("#mybd").val());
    jQuery("#zhifu").html(parseInt(jQuery("#rengou").html() * 1) + parseInt(jQuery("#mybd").val() * 1));
}

//设置cookie
function setCookie(cname, cvalue, exdays) {
    var d = new Date();
    d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
    var expires = "expires=" + d.toUTCString();
    document.cookie = cname + "=" + cvalue + "; " + expires;

}

//获取cookie
function getCookie(cname) {
    var name = cname + "=";
    var ca = document.cookie.split(';');
    for (var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') c = c.substring(1);
        if (c.indexOf(name) != -1) return c.substring(name.length, c.length);
    }
    return "";
}
//清除cookie  
function clearCookie(name) {
    setCookie(name, "", -1);
}
function checkCookie() {
    var user = getCookie("username");
    if (user != "") {
        alert("Welcome again " + user);
    } else {
        user = prompt("Please enter your name:", "");
        if (user != "" && user != null) {
            setCookie("username", user, 365);
        }
    }
}
//checkCookie(); 
    </script>
    <script type="text/javascript">
        var ArrayListCopy = new Array();
        var myRedArray = new Array();
        var myBlueArray = new Array();
        var RedArray = new Array();
        var BlueArray = new Array();
        //var ListArray = new Array();
        var aa;
        var cookies = 0;

        window.num;
        var QS6 = "";
        var QS5 = "";
        var QS4 = "";
        var QS3 = "";
        var QS2 = "";
        var QS1 = "";
        //保存扩展查询6个等级是否点过
        var ArrayNG = new Array();
        var allNO = "";
        var show6 = 1;
        var show5 = 1;
        var show4 = 1;
        var show3 = 1;
        var show2 = 1;
        var show1 = 1;

        //每页数量
        var pagecount = 10;
        function Confirm() {
            var count = 0;
            //alert(111)
            var Number = $("#textarea").val().split("|");
            if (Number == "") {
                alert("请检查号码是否输入正确！");
                return;
            }

            for (var i = 0; i < Number.length; i++) {
                if (Number[i] == "") { break; }
                var AllBall = Number[i].split("+");

                if (AllBall[1] == undefined || AllBall[1] == "") {
                    alert("请检查号码是否输入正确！");
                    return;
                }
                var RedBall = AllBall[0].split(" ");
                //alert(RedBall);
                var BlueBall = AllBall[1].split(" ");

                var value = 0;
                for (var j = 0; j < RedBall.length; j++) {
                    if (RedBall[j] != "" && parseInt(RedBall[j]) > 0) {
                        if (parseInt(RedBall[j]) < 34) {
                            if (parseInt(RedBall[j]) < 10) {
                                value = "0" + parseInt(RedBall[j]);
                            } else {
                                value = parseInt(RedBall[j]);
                            }
                            if ($.inArray(value, RedArray) == -1) {
                                RedArray.push(value);
                            }

                        }
                    }
                }
                for (var k = 0; k < BlueBall.length; k++) {
                    if (BlueBall[k] != "" && parseInt(BlueBall[k]) > 0 && parseInt(BlueBall[k]) < 17) {
                        if (parseInt(BlueBall[k]) < 10) {
                            value = "0" + parseInt(BlueBall[k]);
                        } else {
                            value = parseInt(BlueBall[k]);
                        }
                        if ($.inArray(value, BlueArray) == -1) {
                            BlueArray.push(value);
                        }

                    }
                }
                if (RedArray.length > 5 && BlueArray.length > 0) {
                    var cot = parseInt(fibonacci(RedArray.length) / fibonacci(6) / fibonacci(RedArray.length - 6)) * BlueArray.length;
                    count += cot;
                    ArrayListCopy.push(RedArray + "+" + BlueArray + "&" + cot);
                    aa = RedArray + "+" + BlueArray;
                    RedArray = new Array();
                    BlueArray = new Array();

                }
            }
            if (count < 1) { alert("请检查号码是否输入正确！"); return; }

            if (confirm("系统已检测出" + count + "注" + count * 2 + "元")) {
                // $(".db_k").html("");
                var total = parseInt($("#zhushu").html());
                var money = parseInt($("#yourMoney").html());

                for (var i = 0; i < ArrayListCopy.length; i++) {
                    //alert(ArrayList.length);
                    var count = ArrayListCopy[i].split("&");
                    var ball = count[0].split("+");

                    $(".touchu_ul1").append('<dt ><span class="touchu_ul1_span1" >  <a href="JavaScript:void(0);" onclick="javascript:del(this);">' +
                        '删除</a></span><b >投注</b><b class="touchu_ul1_b" >'
                      + ball[0] + ' + <span class="lan1" >' + ball[1] + '</span></b>[' + count[1] + '注,' + count[1] * 2 + '元]</dt>'
                       );

                }

                aa = aa.replace(/,/g, "*");
                //alert(aa);
                total += parseInt(count[1]);
                money += parseInt(count[1] * 2);
                $("#textarea").val("");
                cookies += 1;
                $("#zhushu").html(total);
                $("#yourSelect").html(total);
                $("#yourMoney").html(money);
                var json = JSON.stringify(aa);
                setCookie("ArrayList", json, 365);
            }
            ArrayListCopy = new Array();
            //alert($("#textarea").val());


        }
        function fibonacci(n) {
            var rtn = 1;
            if (n > 1) {
                var i = 1;
                while (i <= n) {
                    rtn = rtn * i;
                    i++;
                }
            }
            return rtn;
        }
        function Clear(type) {
            if (type == 1) {
                $("#textarea").val('');
            } else if (type == 0) {
                $(".db_k").html("");
                cookies = 0;
            }

        }

        function Delete(obj) {
            $(obj).parent().remove();
            cookies -= 1;
        }
        function Update(obj) {
            var blue = $(obj).parent().children().children(".db_text1").text().split("+");
            var blueball = blue[1].replace(/,/g, "*");

            sessionStorage["par2"] = blue[0] + "+" + blueball;
        }


        function ss() {
            $("#sss").text();
            alert($("#sss").text());
        }

        function Cancel(num) {

            $("#DJ" + num).show();
            $("#KZselect" + num).hide();
            $("#cancel" + num).hide();

        }
        function ExtensionQuery(obj, num) {


            $("#DJ" + num).hide();
            $("#KZselect" + num).show();
            $("#cancel" + num).show();
            var KZQS = "";
            if (num == 6) {
                //alert($.inArray(num, ArrayNG));
                if ($.inArray(num, ArrayNG) > -1) {
                    return;
                } 2
                KZQS = QS6;
                ArrayNG.push(num);
                $("#KZselect" + num).html("");
                //alert($("#KZselect" + num).html());
            } else if (num == 5) {

                if ($.inArray(num, ArrayNG) > -1) {
                    return;
                }
                KZQS = QS5;
                ArrayNG.push(num);
                $("#KZselect" + num).html("");
            } else if (num == 4) {
                if ($.inArray(num, ArrayNG) > -1) {
                    return;
                }
                KZQS = QS4;
                ArrayNG.push(num);
                $("#KZselect" + num).html("");
            } else if (num == 3) {
                if ($.inArray(num, ArrayNG) > -1) {
                    return;
                }
                KZQS = QS3;
                ArrayNG.push(num);
                $("#KZselect" + num).html("");
            } else if (num == 2) {
                if ($.inArray(num, ArrayNG) > -1) {

                    return;
                }
                KZQS = QS2;
                ArrayNG.push(num);
                $("#KZselect" + num).html("");
            } else if (num == 1) {

                if ($.inArray(num, ArrayNG) > -1) {
                    return;
                }
                KZQS = QS1;
                ArrayNG.push(num);
                $("#KZselect" + num).html("");
            }


            $.ajax({
                url: "/Ajax/DoubleBallTool.ashx",
                type: "post",
                //dataType: "text",
                data: {
                    KZselect: num + '+' + KZQS
                },
                success: function (data, textStatus) {
                    var str6 = "";
                    var money = "";
                    $("#DJ" + num).hide();
                    $("#KZselect" + num).show();
                    $("#cancel" + num).show();


                    for (var i = 0; i < eval(data).length; i++) {

                        if (num == 6) {
                            money = eval(data)[i].sixMoney;
                        } else if (num == 5) {
                            money = eval(data)[i].fiveMoney;
                        } else if (num == 4) {
                            money = eval(data)[i].fourMoney;
                        } else if (num == 3) {
                            money = eval(data)[i].threeMoney;
                        } else if (num == 2) {
                            money = eval(data)[i].twoMoney;
                        } else if (num == 1) {
                            money = eval(data)[i].oneMoney;
                        }

                        var redBall = eval(data)[i].LotteryNo.split("+");
                        var red = redBall[0].replace(/\,/g, " ");

                        if (i == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + money + "元)</span></li>";
                            $("#KZselect" + num).append(str6);
                        } else if (i % 3 == 1) {
                            str6 = " <li><span class=\"fl\">第" + eval(data)[i].LotteryQS + "期"
                                    + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                    + "<span class=\"fr\">(" + money + "元)</span></li>";
                            $("#KZselect" + num).append(str6);
                        }
                        else {
                            str6 = " <li><span >第" + eval(data)[i].LotteryQS + "期"
                                        + "<span > " + eval(data)[i].LotteryNo + "</span>  "


                            $("#KZselect" + num).append(str6);
                        }
                        if ((i + 1) % 3 == 0) {
                            $("#KZselect" + num).append("<li></li>");

                        }

                    }
                }
            });
        }

        function ToContrast(obj, num) {
            ArrayNG = new Array();
            QS6 = "";
            QS5 = "";
            QS4 = "";
            QS3 = "";
            QS2 = "";
            QS1 = "";

            var qs = $(".db_text3").html();
            var NO = "[\"";
            //var aa = $(".db_text1").length;
            //alert(cookies);

            //alert($("#btn").value != '');
            if (cookies == 0) {
                alert("请至少选择一注号码进行比对！");
                return;
            } else if (cookies > 0) {
                var NO1 = $(".db_k").text().split("比");
                for (var i = 0; i < NO1.length; i++) {
                    var NO2 = NO1[i].split("[");
                    if (NO2 == "") {
                        break;
                    }
                    var NO3 = NO2[0].replace("投注", "");
                    NO3 = NO3.replace(/\s/g, "");
                    NO3 = NO3.replace(/,/g, "*");
                    NO += NO3 + ",";
                }
                NO += "\"]";
            }
            if (num == 1) {
                if ($(obj).parent().children().children(".db_text1").text() == "") {
                    alert("请至少选择一注号码进行比对！");
                } else {
                    NO = $(obj).parent().children().children(".db_text1").text();

                    NO = NO.replace(/\s/g, "");
                    NO = "[\"" + NO.replace(/,/g, "*") + "\"]";
                }
            }
            $(".kjdb_r").hide();
            $(".kjdb_r1").show();
            $.ajax({
                url: "/Ajax/DoubleBallTool.ashx",
                type: "POST",
                data: {
                    QS: qs,
                    changeBall: NO
                },
                success: function (Response) {
                    //alert(Response);
                    //alert(eval(Response).length);
                    $("#DJ6").html("");
                    $("#DJ5").html("");
                    $("#DJ4").html("");
                    $("#DJ3").html("");
                    $("#DJ2").html("");
                    $("#DJ1").html("");
                    allNO = Response;
                    var ID = "";
                    var str6 = "";
                    var count1 = 0;
                    var count2 = 0;
                    var count3 = 0;
                    var count4 = 0;
                    var count5 = 0;
                    var count6 = 0;



                    for (var i = 0; i < eval(Response).length; i++) {
                        var redBall = eval(Response)[i].LotteryNo.split("+");
                        var red = redBall[0].replace(/\,/g, " ");
                        ID = eval(Response)[i].id;
                        // alert(pagecount)   
                        var Money = "";
                        if (ID == 6) {
                            count6++;
                            QS6 += eval(Response)[i].LotteryQS + ',';
                            Money = eval(Response)[i].sixMoney;
                            if (count6 == pagecount + 1) {
                                //alert(11);
                                $("#DJ6").append("<li id=\"showmore6\"  style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">"
                                + "<a href=\"#\" onclick=\"ShowMore(this,6)\" style=\"color:white\">加载更多</a></li>");
                                continue;
                            } else if (count6 > pagecount) { continue; }
                        } else if (ID == 5) {
                            count5++;
                            QS5 += eval(Response)[i].LotteryQS + ',';
                            Money = eval(Response)[i].fiveMoney;
                            if (count5 == pagecount + 1) {
                                $("#DJ5").append("<li id=\"showmore5\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">"
                                + "<a href=\"#\" onclick=\"ShowMore(this,5)\" style=\"color:white\">加载更多</a></li>");
                            } else if (count5 > pagecount) { continue; }
                        } else if (ID == 4) {
                            count4++;
                            QS4 += eval(Response)[i].LotteryQS + ',';
                            Money = eval(Response)[i].fourMoney;
                            if (count4 == pagecount + 1) {
                                $("#DJ4").append("<li id=\"showmore4\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">"
                                + "<a href=\"#\" onclick=\"ShowMore(this,4)\" style=\"color:white\">加载更多</a></li>");
                            } else if (count4 > pagecount) { continue; }
                        } else if (ID == 3) {
                            count3++;
                            QS3 += eval(Response)[i].LotteryQS + ',';
                            Money = eval(Response)[i].threeMoney;
                            if (count3 == pagecount + 1) {
                                $("#DJ3").append("<li id=\"showmore3\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">"
                                + "<a href=\"#\" onclick=\"ShowMore(this,3)\" style=\"color:white\">加载更多</a></li>");
                            } else if (count3 > pagecount) { continue; }
                        } else if (ID == 2) {
                            count2++;
                            QS2 += eval(Response)[i].LotteryQS + ',';
                            Money = eval(Response)[i].twoMoney;
                            if (count2 == pagecount + 1) {
                                $("#DJ2").append("<li id=\"showmore2\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">"
                                + "<a href=\"#\" onclick=\"ShowMore(this,2)\" style=\"color:white\">加载更多</a></li>");
                            } else if (count2 > pagecount) { continue; }
                        } else if (ID == 1) {
                            count1++;
                            QS1 += eval(Response)[i].LotteryQS + ',';
                            Money = eval(Response)[i].oneMoney;
                            if (count1 == pagecount + 1) {
                                $("#DJ1").append("<li id=\"showmore1\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                                + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">"
                                + "<a href=\"#\" onclick=\"ShowMore(this,1)\" style=\"color:white\">加载更多</a></li>");
                            } else if (count1 > pagecount) { continue; }
                        }

                        str6 = " <li><span class=\"fl\">第" + eval(Response)[i].LotteryQS + "期"
                                     + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                     + "<span class=\"fr\">(" + Money + "元)</span></li>";
                        $("#DJ" + ID).append(str6);

                        //if (count + ID == 1) {
                        //    $("#sixDJ").append("<li id=\"showmore6\" onclick=\"ShowMore(this,6)\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px; height: 26px;"
                        //          + " background: #0195df;line-height:26px;text-align:center;top:990px;left:69%;margin-left:40px; position:absolute;\">加载更多</li>");
                        //}

                    }
                    //alert(count6); //alert(count5);
                    $("#Count1").html(count1);
                    $("#Count2").html(count2);
                    $("#Count3").html(count3);
                    $("#Count4").html(count4);
                    $("#Count5").html(count5);
                    $("#Count6").html(count6);

                    if (count6 <= pagecount) {
                        $("#showmore6").hide();
                    }
                    if (count5 <= pagecount) {
                        $("#showmore5").hide();
                    }
                    if (count4 <= pagecount) {
                        $("#showmore4").hide();
                    }
                    if (count3 <= pagecount) {
                        $("#showmore3").hide();
                    }
                    if (count2 <= pagecount) {
                        $("#showmore2").hide();
                    }
                    if (count1 <= pagecount) {
                        $("#showmore1").hide();
                    }

                    if (count1 == 0) {
                        $("#Count1").html("0");
                        $("#KZ1").hide();
                        $("#DJ1").html("暂无中奖记录").css({ "text-align": "center" });
                    } else {
                        $("#KZ1").show();
                    }
                    if (count2 == 0) {
                        $("#Count2").html("0");
                        $("#KZ2").hide();
                        $("#DJ2").html("暂无中奖记录").css({ "text-align": "center" });
                    } else {
                        $("#KZ2").show();
                    }
                    if (count3 == 0) {
                        $("#Count3").html("0");
                        $("#KZ3").hide();
                        $("#DJ3").html("暂无中奖记录").css({ "text-align": "center" });
                    } else {
                        $("#KZ3").show();
                    }
                    if (count4 == 0) {
                        $("#Count4").html("0");
                        $("#KZ4").hide();
                        $("#DJ4").html("暂无中奖记录").css({ "text-align": "center" });
                    } else {
                        $("#KZ4").show();
                    }
                    if (count5 == 0) {
                        $("#Count5").html("0");
                        $("#KZ5").hide();
                        $("#DJ5").html("暂无中奖记录").css({ "text-align": "center" });
                    } else {
                        $("#KZ5").show();
                    }
                    if (count6 == 0) {
                        $("#Count6").html("0");
                        $("#KZ6").hide();
                        $("#DJ6").html("暂无中奖记录").css({ "text-align": "center" });
                    } else {
                        $("#KZ6").show();
                    }

                }
            });
        }

        function ShowMore(obj, num) {

            var showCount;
            var html = "";
            var count = 0;

            var sixcount = Math.ceil(($("#Count6").html()) / pagecount);
            var fivecount = Math.ceil(($("#Count5").html()) / pagecount);
            var fourcount = Math.ceil(($("#Count4").html()) / pagecount);
            var threecount = Math.ceil(($("#Count3").html()) / pagecount);
            var twocount = Math.ceil(($("#Count2").html()) / pagecount);
            var onecount = Math.ceil(($("#Count1").html()) / pagecount);

            if (num == 6) {
                show6 += 1;
                showCount = pagecount * show6 + 1;
                $("#DJ6").html("");
                if (sixcount == show6) {
                    $("#showmore6").hide();
                }

                for (var i = 0; i < eval(allNO).length; i++) {
                    //alert(eval(allNO)[i].LotteryNo)
                    var redBall = eval(allNO)[i].LotteryNo.split("+");
                    var red = redBall[0].replace(/\,/g, " ");

                    ID = eval(allNO)[i].id;

                    if (ID == 6) {

                        count += 1;
                        //alert(showCount + ":" + count);
                        if (count < showCount) {
                            html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                            + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                            + "<span class=\"fr\">(" + eval(allNO)[i].sixMoney + "元)</span></li>";

                            $("#DJ6").append(html);
                        }
                        if (count == showCount - 1) {
                            $("#DJ6").append("<span id=\"showmore6\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                                 + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">"
                                 + "<a href=\"#\" onclick=\"ShowMore(this,6)\"  style=\"color:white\" >加载更多</a></span>");
                        }

                    }

                }


            } else if (num == 5) {
                show5 += 1;
                showCount = pagecount * show5 + 1;
                $("#DJ5").html("");
                if (fivecount == show5) {
                    $("#showmore5").hide();
                }

                for (var i = 0; i < eval(allNO).length; i++) {
                    //alert(eval(allNO)[i].LotteryNo)
                    var redBall = eval(allNO)[i].LotteryNo.split("+");
                    var red = redBall[0].replace(/\,/g, " ");

                    ID = eval(allNO)[i].id;

                    if (ID == 5) {

                        count += 1;
                        //alert(showCount + ":" + count);
                        if (count < showCount) {
                            html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                            + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                            + "<span class=\"fr\">(" + eval(allNO)[i].fiveMoney + "元)</span></li>";

                            $("#DJ5").append(html);
                        }
                        if (count == showCount - 1) {
                            $("#DJ5").append("<span id=\"showmore5\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                                 + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">"
                                 + "<a href=\"#\" onclick=\"ShowMore(this,5)\"  style=\"color:white\" >加载更多</a></span>");
                        }

                    }

                }

            } else if (num == 4) {
                show4 += 1;
                showCount = pagecount * show4 + 1;
                $("#DJ4").html("");
                if (fourcount == show4) {
                    $("#showmore4").hide();
                }

                for (var i = 0; i < eval(allNO).length; i++) {
                    //alert(eval(allNO)[i].LotteryNo)
                    var redBall = eval(allNO)[i].LotteryNo.split("+");
                    var red = redBall[0].replace(/\,/g, " ");

                    ID = eval(allNO)[i].id;

                    if (ID == 4) {

                        count += 1;
                        //alert(showCount + ":" + count);
                        if (count < showCount) {
                            html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                            + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                            + "<span class=\"fr\">(" + eval(allNO)[i].fourMoney + "元)</span></li>";

                            $("#DJ4").append(html);
                        }
                        if (count == showCount - 1) {
                            $("#DJ4").append("<span id=\"showmore4\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                                 + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">"
                                 + "<a href=\"#\" onclick=\"ShowMore(this,4)\"  style=\"color:white\" >加载更多</a></span>");
                        }

                    }

                }

            } else if (num == 3) {
                show3 += 1;
                showCount = pagecount * show3 + 1;
                $("#DJ3").html("");
                if (threecount == show3) {
                    $("#showmore3").hide();
                }

                for (var i = 0; i < eval(allNO).length; i++) {
                    //alert(eval(allNO)[i].LotteryNo)
                    var redBall = eval(allNO)[i].LotteryNo.split("+");
                    var red = redBall[0].replace(/\,/g, " ");

                    ID = eval(allNO)[i].id;

                    if (ID == 3) {

                        count += 1;
                        //alert(showCount + ":" + count);
                        if (count < showCount) {
                            html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                            + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                            + "<span class=\"fr\">(" + eval(allNO)[i].threeMoney + "元)</span></li>";

                            $("#DJ3").append(html);
                        }
                        if (count == showCount - 1) {
                            $("#DJ3").append("<span id=\"showmore3\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                                 + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">"
                                 + "<a href=\"#\" onclick=\"ShowMore(this,3)\"  style=\"color:white\" >加载更多</a></span>");
                        }

                    }

                }

            } else if (num == 2) {
                show2 += 1;
                showCount = pagecount * show2 + 1;
                $("#DJ2").html("");
                if (twocount == show2) {
                    $("#showmore2").hide();
                }
                for (var i = 0; i < eval(allNO).length; i++) {
                    //alert(eval(allNO)[i].LotteryNo)
                    var redBall = eval(allNO)[i].LotteryNo.split("+");
                    var red = redBall[0].replace(/\,/g, " ");

                    ID = eval(allNO)[i].id;

                    if (ID == 2) {

                        count += 1;
                        //alert(showCount + ":" + count);
                        if (count < showCount) {
                            html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                            + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                            + "<span class=\"fr\">(" + eval(allNO)[i].twoMoney + "元)</span></li>";

                            $("#DJ2").append(html);
                        }
                        if (count == showCount - 1) {
                            $("#DJ2").append("<span id=\"showmore2\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                                 + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">"
                                 + "<a href=\"#\" onclick=\"ShowMore(this,2)\"  style=\"color:white\" >加载更多</a></span>");
                        }

                    }

                }

            } else if (num == 1) {
                show1 += 1;
                showCount = pagecount * show1 + 1;
                $("#DJ1").html("");
                if (onecount == show1) {
                    $("#showmore1").hide();
                }

                for (var i = 0; i < eval(allNO).length; i++) {
                    //alert(eval(allNO)[i].LotteryNo)
                    var redBall = eval(allNO)[i].LotteryNo.split("+");
                    var red = redBall[0].replace(/\,/g, " ");

                    ID = eval(allNO)[i].id;

                    if (ID == 1) {
                        count += 1;
                        //alert(showCount + ":" + count);
                        if (count < showCount) {
                            html = " <li><span class=\"fl\">第" + eval(allNO)[i].LotteryQS + "期"
                                            + "<span class=\"db_text1\"> " + red + "</span> |<span class=\"db_text2\"> " + redBall[1] + "</span> </span> "
                                            + "<span class=\"fr\">(" + eval(allNO)[i].oneMoney + "元)</span></li>";

                            $("#DJ1").append(html);
                        }
                        if (count == showCount - 1) {
                            $("#DJ1").append("<span id=\"showmore1\" style=\"width:80px;margin:0 auto;display:block;color: #fff;font-size: 14px;"
                                 + " height: 26px; background: #0195df;position:absolute;line-height:26px;text-align:center;position:relative;padding:0 0 0px 0; \">"
                                 + "<a href=\"#\" onclick=\"ShowMore(this,1)\"  style=\"color:white\" >加载更多</a></span>");
                        }

                    }

                }

            }

        }

    </script>
    </head>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="betting_content">

        <div class="wh">
            <div class="kjdb_nr">
                <div class="kjdb_l">
                    <div class="pldb">
                        <div class="fl fb">选号须知：</div>
                        <div class="fl">
                            至少输入6个红球和1个蓝球组合成一注彩票<br />
                            1、红球和蓝球之间用 + 分隔，两注之间用 | 分隔<br />
                            2、单式示例：<span class="db_text1">01 02 03 04 05 06</span>+<span class="db_text2">07</span><br />
                            3、复式示例：<span class="db_text1">01 02 03 04 05 06 07 08 09</span>+<span class="db_text2">01 02 03</span><br />
                            4、中英文、符号等非法字符以及无效号码，系统将自动滤除<br />
                            请严格按照举例格式输入或粘贴您的号码进行查询
                        </div>
                    </div>

                    <input type="hidden" id="ZXRedBll" name="ZXRedBll" />
                    <input type="hidden" id="ZXBlueBll" name="ZXBlueBll" />
                    <input type="hidden" id="lotteryStr" name="lotteryStr" />
                    <input type="hidden" id="DTRed" name="DTRed" />
                    <div class="tc">
                        <textarea name="textarea" id="textarea" class="kjdb_textarea" cols="10" onkeyup="value=value.replace(/[^0-9+| ]/g,'')"></textarea>
                    </div>
                    <input type="button" class="kjdb_btn" value="确认选号" onclick="Confirm()" />
                    <div id="db_k" class="pldb_text"><a href="#" onclick="Clear(1)">清空选号</a></div>

                    <div class="betting_choose_box">
                        <div class="betting_choose_box_t">
                            <h3 class="">共<b><span id="zhushu">0</span></b>注</h3>
                            <ul class="betting_choose_tul">
                                <li><a href="javascript:void(0);" onclick="javascript:getPL3Random(1);">机选1注</a></li>
                                <li><a href="javascript:void(0);" onclick="javascript:getPL3Random(5);">机选5注</a></li>
                                <li><a href="javascript:void(0);" onclick="javascript:getPL3Random(10);">机选10注</a></li>
                            </ul>
                            <a class="betting_choose_a" href="javascript:void(0);" onclick="javascript:clearAll();">清空</a>
                        </div>
                        <div id="sss" class="db_k">
                            <dl class="touchu_ul1">
                            </dl>

                        </div>
                        <%--<div style=" height:300px; width:100%; background:#2155A9;"></div>--%><!--这个div是看这个地方好用不写的程序可以删掉-->

                        <ul class="betting_choose_ul">
                            <%--<li><a href="">导入方案</a></li>
                <li><a href="">保存方案</a></li>
                <li><a href="">对比历史开奖</a></li>--%>
                        </ul>
                    </div>

                    <!--2-->
                    <div class="betting_choose_num">
                        您选了 <span class="hong3 stong" id="yourSelect" name="yourSelect">0 </span>注， 倍投 
            <input type="text" class="betting_choose_btn" id="yourMulti" name="yourMulti" value="1" onblur="fillB()">
                        倍，共 <span class="hong3 stong" id="yourMoney" name="yourMoney">0</span> 元
                    </div>
                    <!--3-->
                    <div class="betting_way_box">
                        <div class="betting_way_title">
                            <b>投注方式：</b>
                            <ul class="betting_way_t_ul">
                                <li>
                                    <input type="radio" checked="checked" id="myself" name="selectMy" onclick="displayck()" />
                                    自购</li>
                                <li>
                                    <input type="radio" id="together" name="selectMy" onclick="displaycl()" />发起合买</li>
                                <%-- <li>
                        <asp:RadioButton ID="RadioButton3" runat="server" />&nbsp;我要追号</li>--%>
                            </ul>
                            <p class="betting_way_infor">多人出资购买彩票，奖金按购买比例分享</p>
                        </div>

                        <div class="tab-pane" id="myselfDiv" style="display: none;">
                            <ul class="betting_way_con">
                                <li>
                                    <p class="b_w_c_n">方案标题：</p>
                                    <input class="b_w_c_box" tabindex="1" autocomplete="off" max="15" type="text" placeholder="双色球第2014151期" id="lotteryName" name="lotteryName">
                                    <p class="b_w_c_i">还可以填写<b>15</b>字</p>
                                </li>
                                <li>
                                    <p class="b_w_c_n">合买宣言：</p>
                                    <textarea class="b_w_c_box2" tabindex="2" autocomplete="off" max="50" placeholder="这个人很聪明，只等中大奖" id="lotteryxy" name="lotteryxy"></textarea>

                                    <p class="b_w_c_i">还可以填写<b>50</b>字</p>
                                </li>
                                <li>
                                    <p class="b_w_c_n">盈利提成：</p>
                                    <input type="hidden" id="selectHid" name="selectHid" value="0.00" />
                                    <select name="a3" tabindex="3" autocomplete="off" class="b_w_c_box4" id="ticheng" onchange="javascript:setSelectValue();">
                                        <option value="0.00" selected="selected">0%</option>
                                        <option value="0.01">1%</option>
                                        <option value="0.02">2%</option>
                                        <option value="0.03">3%</option>
                                        <option value="0.04">4%</option>
                                        <option value="0.05">5%</option>
                                        <option value="0.06">6%</option>
                                        <option value="0.07">7%</option>
                                        <option value="0.08">8%</option>
                                        <option value="0.09">9%</option>
                                        <option value="0.10">10%</option>
                                    </select>
                                    <p class="b_w_c_i">
                                        【盈利提成 =（税后奖金 - 方案金额）× 提成比例】<div class="b_que">
                                            <div>盈利提成:方案中奖并且盈利。</div>
                                        </div>
                                    </p>
                                </li>
                                <li>
                                    <p class="b_w_c_n">我要认购：</p>
                                    <input class="b_w_c_box3" tabindex="4" autocomplete="off" type="text" id="mymoney" name="mymoney" onblur="javascript:calculateMyrg(this);" value="1" />
                                    <p class="b_w_c_i">元  发起人至少认购<b>5</b>%</p>
                                </li>
                                <li>
                                    <p class="b_w_c_n">我要保底：</p>
                                    <input class="b_w_c_box3" tabindex="5" autocomplete="off" type="text" id="mybd" name="mybd" onblur="javascript:calculateMybd(this);" />
                                    <p class="b_w_c_i">
                                        元  <a href="">全保</a>  <%--最多可保底 <b class="hong2">0</b>元--%><div>
                                            <div class="b_que">
                                                <div>合买保底发起时，系统将会先从发起人账户内扣除相应的金额</div>
                                            </div>
                                    </p>
                                </li>
                                <li>
                                    <p class="b_w_c_n">是否公开：</p>
                                    <dl class="b_w_c_dl">
                                        <input type="hidden" id="gongkaiHid" name="gongkaiHid" value="1" />
                                        <dd>
                                            <input type="radio" checked="checked" id="gongkai1" name="gongkai" onclick="javascript: setgongkai(1);" />公开</dd>
                                        <dd>
                                            <input type="radio" id="gongkai2" name="gongkai" onclick="javascript: setgongkai(2);" />&nbsp;销售截止后公开</dd>
                                        <dd>
                                            <input type="radio" id="gongkai3" name="gongkai" onclick="javascript: setgongkai(3);" />&nbsp;仅对认购用户公开</dd>
                                    </dl>
                                </li>
                            </ul>
                            <div class="betting_way_bottom">
                                <p>
                                    您需支付：<b><span id="zhifu">0</span></b>元
                (认购<b><span id="rengou">0</span></b>元 + 保底<b><span id="baodi">0</span></b>元)
                                </p>
                                <p class="b_right">注：方案进度+保底≥100%，即可出票</p>
                            </div>
                        </div>
                    </div>
                    <!--3-->
                    <div class="betting_choose_confirm">
                        <input type="button" onclick="javascript: addBuyInfo();" value="确认投注" class="choose_num" />
                    </div>
                    <p class="betting_agree">
                        <input type="checkbox" checked="checked" id="lookXieyi">
                        我已阅读并同意<a href="">&lt;&lt;用户委托投注协议&gt;&gt;</a>
                    </p>


                    <p class="betting_t">
                        <span>双色球中奖说明</span>
                    </p>
                    <div class="betting_award">
                        <div class="cy_lottery_div6">
                            <ul class="cy_table5_tr">
                                <li class="w_70">奖级</li>
                                <li class="w_140">中奖条件</li>
                                <li class="w_70">奖金</li>
                            </ul>
                            <dl class="cy_lotter_d7">
                                <dt>一等奖</dt>
                                <dd>
                                    <div class="cy_table5_div">
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span cy_table5_span1"></span>
                                    </div>
                                </dd>
                                <dt><span class="table_center">浮动</span></dt>
                            </dl>
                            <dl class="cy_lotter_d7">
                                <dt>二等奖</dt>
                                <dd>
                                    <div class="cy_table5_div">
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                    </div>
                                </dd>
                                <dt><span class="table_center">浮动</span></dt>
                            </dl>
                            <dl class="cy_lotter_d7">
                                <dt>三等奖</dt>
                                <dd>
                                    <div class="cy_table5_div">
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span cy_table5_span1"></span>
                                    </div>
                                </dd>
                                <dt><span class="table_center">浮动</span></dt>
                            </dl>
                            <dl class="cy_lotter_d7">
                                <dt>四等奖</dt>
                                <dd>
                                    <div class="cy_table5_div">
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span cy_table5_span1"></span>
                                    </div>
                                </dd>
                                <dt><span class="table_center">200元</span></dt>
                            </dl>
                            <dl class="cy_lotter_d7">
                                <dt>五等奖</dt>
                                <dd>
                                    <div class="cy_table5_div">
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                    </div>
                                </dd>
                                <dt><span class="table_center">50元</span></dt>
                            </dl>
                            <dl class="cy_lotter_d7">
                                <dt>六等奖</dt>
                                <dd>
                                    <div class="cy_table5_div">
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span cy_table5_span1"></span>
                                    </div>
                                </dd>
                                <dt><span class="table_center">10元</span></dt>
                            </dl>
                            <dl class="cy_lotter_d7">
                                <dt>七等奖</dt>
                                <dd>
                                    <div class="cy_table5_div">
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                        <span class="cy_table5_span"></span>
                                    </div>
                                </dd>
                                <dt><span class="table_center">5元</span></dt>
                            </dl>
                        </div>

                    </div>
                    <div class="betting_question">
                        <%if (problemList != null)
                            {
                                for (int i = 0; i < problemList.Count; i++)
                                {%>
                        <dl class="l_lottery_dl1">
                            <dt><%=problemList[i].Name%></dt>
                            <dd><%=problemList[i].answer%></dd>
                        </dl>
                        <%}
                            } %>
                    </div>
                </div>
                <!--Left-->
                <!--Right-->
                <div class="betting_right">

                    <%-- <div class="betting_predict">
        <div class="betting_predict_t">
            <h2>预测选号</h2>
            <span><a href="">更多&gt;&gt;</a></span>
        </div>
        <ul class="betting_predict_ul">
        <%if (newsList.Count > 0)
            {
                for (int i = 0; i < newsList.Count; i++)
                {%>
              
            <li>·<a href="news_details.aspx?id=<%=newsList[i].id%>&type=8"><%=newsList[i].Title%></a></li> 
            <%}
                } %>
        </ul>
    </div>--%>
                    <!--PaiHang-->
                    <%--   <div class="d_r_t">
            <h2>中彩排行</h2>
            <p>本站累计中奖<span><%=jiangjin2 %></span> 亿元</p>
        </div>
        <ul class="d_paihang">
          <%if (userAccount != null && userAccount.Count > 0)
              {


                  for (int i = 0; i < (userAccount.Count > 12 ? 12 : userAccount.Count); i++)
                  {
                      %> 
        <li>
                <b <%if (i < 3)
                    { %>class="yellowbg"<%}
                    else
                    { %> class="p_n"<%} %>><%=i+1 %></b>
                <p class="p_n"><%=SelectName(userAccount[i].user_id)%></p>
                <p class="p_date"><%=Convert.ToDecimal(userAccount[i].winTotal) % 100000000 / 10000%> 万元</p>
            </li> 
          <% }
              }%>   
        </ul>--%>
                    <!--PaiHang-->
                </div>
                <!--Right-->
            </div>
        </div>

        <script type="text/javascript">
            $('.fxui-tab').fxuiTab();
        </script>
    </div>
</asp:Content>
